package com.zzjc.web.base.constant;

/**
 * 公共、异常返回枚举码
 */
public enum ResultEnum {

    SUCCESS(0, "执行成功"),
    ERROR(1, "执行失败"),
    UPLOAD_ERROR(89, "文件上传失败"),
    EXCEPTION_SYS(99, "系统处理异常");

    private Integer code;
    private String msg;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
